package com.feidee.data.report.model;

public class ColumnInfoModel {

	private String columnValue;  //Mysql列注释 
	private String columnType;   //Mysql列类型
	private String dimType;   //是否为主键
	
	public String getColumnValue() {
		return columnValue;
	}
	public void setColumnValue(String columnValue) {
		this.columnValue = columnValue;
	}
	
	public String getColumnType() {
		return columnType;
	}
	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}
	
	public String getDimType() {
		return dimType;
	}
	public void setDimType(String dimType) {
		this.dimType = dimType;
	}
	
	@Override
	public String toString() {
		return "ColumnInfoModel [columnValue=" + columnValue + ", columnType=" + columnType + ", dimType=" + dimType
				+ "]";
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		ColumnInfoModel that = (ColumnInfoModel) o;

		if (columnValue != null ? !columnValue.equals(that.columnValue) : that.columnValue != null) return false;
		if (columnType != null ? !columnType.equals(that.columnType) : that.columnType != null) return false;
		return dimType != null ? dimType.equals(that.dimType) : that.dimType == null;

	}

	@Override
	public int hashCode() {
		int result = columnValue != null ? columnValue.hashCode() : 0;
		result = 31 * result + (columnType != null ? columnType.hashCode() : 0);
		result = 31 * result + (dimType != null ? dimType.hashCode() : 0);
		return result;
	}
}
